From af23bfbeea746608e28ad14c9bcd2c6978d823df Mon Sep 17 00:00:00 2001 From: "kaf24@freefall.cl.cam.ac.uk" Date: Fri, 22 Oct 2004 16:01:26 +0000 Subject: [PATCH] bitkeeper revision 1.1159.130.3 (41792ed6aunLXFVdvW9RR6KzJOFiVw) Add a required privilege check. --- xen/common/event_channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 3ac51e53b6..89ebc7fcf7 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -159,6 +159,8 @@ static long evtchn_bind_interdomain(evtchn_bind_interdomain_t *bind) switch ( d1->event_channel[port1].state ) { case ECS_FREE: + if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) ) + ERROR_EXIT(-EPERM); break; case ECS_UNBOUND: -- 2.30.2